package com.sywl.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sywl.dao.UserTypeDao;
import com.sywl.orm.UserType;
import com.sywl.service.UserTypeService;
import com.sywl.util.DataGridModel;

@Service
public class UserTypeServiceImpl implements UserTypeService{

	@Autowired
	private UserTypeDao usertypeDao;
	
	@Transactional
	public void addUserType(UserType userType) {
		usertypeDao.addUserType(userType);
	}

	@Transactional
	public List<UserType> listUserType() {
		return usertypeDao.listUserType();
	}

	@Transactional
	public Map<String, Object> getPageList(DataGridModel dgm, UserType usertype) {
		return usertypeDao.getPageList(dgm, usertype);
	}
}
